package org.jha.base;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;

import com.sun.jna.Structure;

public class BaseStructure extends Structure {

	@SuppressWarnings({ "unchecked", "rawtypes" })
	@Override
	protected List getFieldOrder() {
		
		List<Field> fields = getFieldList();
		List<String> fieldList = new ArrayList<String>();
		
		for (Field field : fields) {
			fieldList.add(field.getName());
		}
		return fieldList;
	}

}
